//
//  TruffleAppDelegate.h
//  Truffle
//
//  Created by Ismaila Kredity on 07/02/10.
//  Copyright kredity 2010. All rights reserved.
//

#import "Accueil.h"

@interface TruffleAppDelegate : NSObject <UIApplicationDelegate> {
    
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;	    
    NSPersistentStoreCoordinator *persistentStoreCoordinator;

	Accueil *accueil;
	
    UIWindow *window;
    //UINavigationController *navigationController;
	UITabBarController * tabBarController;
}


@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;

@property (nonatomic, retain, readwrite) Accueil *accueil;

@property (nonatomic, readonly) NSString *applicationDocumentsDirectory;

@property (nonatomic, retain) IBOutlet UIWindow *window;
//@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@property (nonatomic, retain) IBOutlet UITabBarController * tabBarController;

- (IBAction)saveAction:sender;
- (void) copyDatabaseIfNeeded;
- (NSString *) getDBPath;
-(void)alertNotice:(NSString *)title withMSG:(NSString *)msg cancleButtonTitle:(NSString *)cancleTitle otherButtonTitle:(NSString *)otherTitle;

@end

